<div>
    <ul>
    {% for chapter in chapters %}
        <li>
            <a href="{{chapter.get('bookName') + '/' + str(chapter.get('chapterId'))}}">{{chapter.get('chapterName')}}</a>
        </li>
    {% end %}
    </ul>
</div>